<?php
namespace app\company\validate;


class CompanyRoleValidate extends BaseValidate
{
    public function __construct()
    {
        $rule = [
            'role_key' => 'require|max:20',

        ];

        $message = [
            'role_key.require' => '角色标识不能为空',
            'role_key.max' => '角色标识长度不能超过20位',
        ];

        $scene = [
            'add'  => ['role_key','name'],
        ];
        parent::__construct($rule, $message, $scene);
    }
}